import request from '@/utils/request'

// 获取继续教育列表
export function listContinuingEducation(query) {
  return request({
    url: '/customer/pxcy/continuingEducation/list',
    method: 'get',
    params: query
  })
}
//删除继续教育
export function delContinuingEducation(ids) {
  return request({
    url: '/customer/pxcy/continuingEducation/delete/' + ids,
    method: 'post'
  })
}
// 保存继续教育
export function setContinuingEducation(data) {
  return request({
    url: '/customer/pxcy/continuingEducation/saveOrUpdate',
    method: 'post',
    data
  })
}
// 数据导入继续教育
export function importContinuingEducation(data) {
  return request({
    url: '/customer/pxcy/continuingEducation/importData',
    method: 'post',
    data
  })
}
//通过id获取继续教育详情
export function getContinuingEducationDetail(id) {
  return request({
    url: '/customer/pxcy/continuingEducation/info/' + id,
    method: 'get'
  })
}

// 获取学历提升列表
export function listEducationPromotion(query) {
  return request({
    url: '/customer/pxcy/educationPromotion/list',
    method: 'get',
    params: query
  })
}
//删除学历提升
export function delEducationPromotion(ids) {
  return request({
    url: '/customer/pxcy/educationPromotion/delete/' + ids,
    method: 'post'
  })
}
// 保存学历提升
export function setEducationPromotion(data) {
  return request({
    url: '/customer/pxcy/educationPromotion/saveOrUpdate',
    method: 'post',
    data
  })
}
// 数据导入学历提升
export function importEducationPromotion(data) {
  return request({
    url: '/customer/pxcy/educationPromotion/importData',
    method: 'post',
    data
  })
}
//通过id获取学历提升详情
export function getEducationPromotionDetail(id) {
  return request({
    url: '/customer/pxcy/educationPromotion/info/' + id,
    method: 'get'
  })
}

// 获取培训会员列表
export function listMember(query) {
  return request({
    url: '/customer/pxcy/member/list',
    method: 'get',
    params: query
  })
}
//删除培训会员
export function delMember(ids) {
  return request({
    url: '/customer/pxcy/member/delete/' + ids,
    method: 'post'
  })
}
// 保存培训会员
export function setMember(data) {
  return request({
    url: '/customer/pxcy/member/saveOrUpdate',
    method: 'post',
    data
  })
}
// 数据导入培训会员
export function importMember(data) {
  return request({
    url: '/customer/pxcy/member/importData',
    method: 'post',
    data
  })
}
//通过id获取培训会员详情
export function getMemberDetail(id) {
  return request({
    url: '/customer/pxcy/member/info/' + id,
    method: 'get'
  })
}
